//
//  EFOrderShopNameCell.m
//  EnjogFood
//
//  Created by 王芳 on 17/5/13.
//  Copyright © 2017年 wf. All rights reserved.
//

#import "EFOrderShopNameCell.h"

@interface EFOrderShopNameCell ()
@property (strong, nonatomic) UILabel *shopNameLabel;
@end

@implementation EFOrderShopNameCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self initUI];
    }
    return self;
}

- (void)initUI{
    [self.contentView addSubview:self.shopNameLabel];
}

- (void)setObject:(ICTableViewItem *)item{
    self.shopNameLabel.text = @"十里河店";
    [self.shopNameLabel sizeToFit];
    self.shopNameLabel.left = 20;
    self.shopNameLabel.top = 18;
}

- (UILabel *)shopNameLabel{
    if (!_shopNameLabel) {
        _shopNameLabel = [[UILabel alloc] init];
        _shopNameLabel.textColor = kBlack333;
        _shopNameLabel.font = [UIFont systemFontOfSize:13];
    }
    return _shopNameLabel;
}

@end
